package com.linkcard.list.manager;

import java.util.List;

import com.linkcard.commen.tools.Page;
import com.linkcard.list.model.Activities;
import com.linkcard.list.persistence.ActivitiesDao;

public class ActivitiesManagerImpl implements ActivitiesManager {

	private ActivitiesDao activitiesDao=null;
	//add 活动
	public boolean addActivities(Activities activities) {
		return this.activitiesDao.addActivities(activities);
	}
	public ActivitiesDao getActivitiesDao() {
		return activitiesDao;
	}
	public void setActivitiesDao(ActivitiesDao activitiesDao) {
		this.activitiesDao = activitiesDao;
	}
	//获得活动列表
	public List activitesList(Page pageObj, String searchStr) {
		return this.activitiesDao.activitesList(pageObj,  searchStr);
	}
	//查找活动
	public Activities findActivities(Integer id) {
		return this.activitiesDao.findActivities(id);
	}
	//修改活动
	public boolean modifyActivities(Activities activities) {
		return this.activitiesDao.findActivities(activities);
	}
	//删除活动
	public boolean deleteActivities(int ids) {
		return this.activitiesDao.deleteActivities(ids);
	}
	//获得单个活动
	public List singleActivities(Integer id) {
		return this.activitiesDao.singleActivities(id);
	}

}
